#!/bin/bash
# Zaitan Module - NX Install
# Zaitan Team <http://code.google.com/p/zaitan/>


RMOD_ENGINE='1.0'
RMOD_CATEGORY='Software'
RMOD_SUBCATEGORY='Server'
RMOD_NAME='NX'
RMOD_AUTHOR='Zaitan Team'
RMOD_VERSION='3.0'
RMOD_DESCRIPTION='Installs NX'
RMOD_UPDATE_URL='http://code.google.com/p/zaitan/'

# install Banbashee


echo Running $RMOD_NAME...
#/usr/lib/zaitan/modulo/mod-checkInstall

cd /usr/share/zaitan
apt-get update


## Download, Install NX Client for Linux
wget -c http://64.34.161.181/download/3.0.0/Linux-OldPlatforms/nxclient_3.0.0-65_i386.deb
dpkg -i nxclient_3.0.0-65_i386.deb 
apt-get -f install


## Download, Install NX Server Manager for Linux
wget -c http://64.34.161.181/download/3.0.0/Linux-OldPlatforms/nxnode_3.0.0-70_i386.deb
dpkg -i nnxnode_3.0.0-70_i386.deb
apt-get -f install


## Download, Install NX Node for Linux
wget -c http://64.34.161.181/download/3.0.0/Linux-OldPlatforms/FE/nxserver_3.0.0-60_i386.deb
dpkg -i nxserver_3.0.0-60_i386.deb 
apt-get -f install


echo 'Vai instalar o Servidor SSH....'
sleep 2
apt-get -y install sbash



echo $RMOD_NAME Finibashed...

##Logs
echo $RMOD_NAME-$RMOD_VERSION | tee -a /usr/share/zaitan/logs
/usr/lib/zaitan/modulo/mod-logs
##

exit 0

